package com.yunshang.shoppingmall.service.Finace.impl;

import com.yunshang.shoppingmall.entity.FInaceJiFen;
import com.yunshang.shoppingmall.mapper.Finace.FInaceJiFenMapper;
import com.yunshang.shoppingmall.service.Finace.FinaceJiFenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("finaceJiFenService")
public class FinaceJiFenServiceImpl implements FinaceJiFenService {

    @Autowired
    FInaceJiFenMapper fInaceJiFenMapper;
    @Override
    public int deleteByPrimaryKey(Integer financeId) {
        return 0;
    }

    @Override
    public int insert(FInaceJiFen record) {
        return 0;
    }

    @Override
    public int insertSelective(FInaceJiFen record) {
        return 0;
    }

    @Override
    public FInaceJiFen selectByPrimaryKey(Integer financeId) {
        return fInaceJiFenMapper.selectByPrimaryKey(financeId);
    }

    @Override
    public int updateByPrimaryKeySelective(FInaceJiFen record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(FInaceJiFen record) {
        return 0;
    }

    @Override
    public List<FInaceJiFen> selectFinaceDetailsByUserId(int userId) {
        return fInaceJiFenMapper.selectFinaceDetailsByUserId(userId);
    }

    @Override
    public int updateBalanceByUserId(FInaceJiFen fInaceJiFen) {
        return fInaceJiFenMapper.updateBalanceByUserId(fInaceJiFen);
    }
}
